package cn.qidisoft.edu.hzjt.dao.zyc;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import cn.qidisoft.edu.hzjt.model.xb.PartyResponsibilityAttEn;
import cn.qidisoft.edu.hzjt.model.zyc.DeveAmateurSchool;
import cn.qidisoft.edu.hzjt.model.zyc.DeveAmateurSchoolAtt;
import cn.qidisoft.edu.hzjt.model.zyc.DeveAmateurSchoolStudent;

/**
 * 
 * @author Administrator 类说明：业余党校开展情况mapper接口
 */
@Repository
public interface DeveAmateurSchoolMapper {
	// 分頁查询所有
	List<DeveAmateurSchool> queryDeveAmateurSchoolPageList(Map<String, Object> qMap, RowBounds rowBounds);

	int queryDeveAmateurSchoolPageCount(Map<String, Object> qMap);

	void insert(DeveAmateurSchool data);

	void insertDeveAmateurSchoolStudent(DeveAmateurSchoolStudent deveAmateurSchoolStudent);

	DeveAmateurSchool queryDeveAmateurSchoolById(Integer dxid);

	int update(DeveAmateurSchool deveAmateurSchool);

	void deletedeveAmateurSchoolStduentByParentId(Integer parentId);

	List<DeveAmateurSchool> getDASList(DeveAmateurSchool pM2);

	Integer deleteByIds(List<Integer> id_List);

	/***
	 * 批量插入附件
	 * 
	 * @param records
	 */
	void batchInsertsFiles(List<PartyResponsibilityAttEn> records);

	/***
	 * 查询附件
	 * 
	 * @param entity
	 * @return
	 */
	List<PartyResponsibilityAttEn> queryFilesList(PartyResponsibilityAttEn entity);

	/**
	 * 附件删除
	 * 
	 * @param entity
	 */
	void deleteAccessory(PartyResponsibilityAttEn entity);

	/**
	 * 查询文件路径
	 * 
	 * @param fileId
	 * @return
	 */
	DeveAmateurSchoolAtt selPartyAmateurSchoolAttById(DeveAmateurSchoolAtt deveAmateurSchoolAtt);
    /**
     * 根据学生id获取获取业余党校id
     * @param xsid
     * @return
     */
	DeveAmateurSchoolStudent getParendById(Integer xsid);

}
